import cv2
import matplotlib.pyplot as plt
import numpy as np

if __name__ == '__main__':
    img = cv2.imread('3/lena_color.jpg')
    img1 = plt.imread('3/lena_color.jpg')
    cv2.imshow("img",img)
    if img is not None:
        b = np.copy(img)
        g = np.copy(img)
        r = np.copy(img)

        b[:,:,1]=0
        b[:, :, 2] = 0

        g[:, :, 0] = 0
        g[:, :, 2] = 0

        r[:, :, 1] = 0
        r[:, :, 1] = 0

        cv2.imshow("b",b)
        cv2.imshow("g", g)
        cv2.imshow("r", r)


    cv2.waitKey()
    cv2.destroyAllWindows()